import net from '../../utils/net.js'
Page({
  data: {
    refundId:null,
    bank:null,
    plan:null,
    details:null
  },
  getData:function() {
    let that = this
    net.http({
      url: "/api/index/index?method=refund_plan_details",
      data: {
        id: this.data.refundId
      },
      isShowLoading:true,
      successCb:function(res) {
        that.setData({
          bank: res.data.bank,
          plan: res.data.plan,
          details: res.data.details
        })
      }
    })
  },
  onLoad: function (options) {
    console.log(options)
    this.setData({
      refundId: options.id
    })
    this.getData()
  },
  onPullDownRefresh: function () {
    this.getData()
  },
})